package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.query.MenuQuery;

import java.util.List;

public interface IMenuService {
    void saveOrUpdate(Menu entity);

    void delete(Long id);

    Menu get(Long id);

    List<Menu> listAll();

    // 查询根菜单
    List<Menu> selectRootMenu();

    List<Long> selectByRoleId(Long id);

    List<Menu> selectEmployeeMenu();

    List<Menu> query(MenuQuery qo);

    List<Menu> getPatentMenus(Long parentId);


//    PageResult query(QueryObject qo);
}
